Skip to content

Clean up guncontroller subscription stuff#987

Merged
toberge merged 4 commits intodevfrom
fix/input-subscription
Sep 2, 2025
Merged

Clean up guncontroller subscription stuff#987
toberge merged 4 commits intodevfrom
fix/input-subscription

Conversation

@toberge
Copy link
Copy Markdown
Contributor

@toberge toberge commented Aug 18, 2025

Took all the not-so-risky fixes from #975 and put them into this PR so we at least have some of these improvements 😔

- Reorder Detach() defs
- Assign GunController in Attach()
- Actually call Detach()
Animator was triggered from both the body and the animator script.
Removed it from the animator as removing it from the body made me unable
to shoot, likely because the animator has to call methods on the body class.

Did not fix the eternally frustrating revolver bug, but it seems to take
longer to trigger now???
Copy link
Copy Markdown
Contributor

@Fueredoriku Fueredoriku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, couldnt find any big issues from these changes after testing

Comment thread Assets/Scripts/Gamestate/PlayerManager.cs
Comment thread Assets/Scripts/Augment/GunController.cs
Comment thread Assets/Scripts/Gamestate/PlayerManager.cs
@toberge toberge merged commit be75e64 into dev Sep 2, 2025
@toberge toberge deleted the fix/input-subscription branch September 2, 2025 18:30
@github-project-automation github-project-automation Bot moved this from Review to Done 🎉 in Prosjekt-Spill-H22 board Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done 🎉

Development

Successfully merging this pull request may close these issues.

2 participants